import React from "react";
import { Tag } from "antd";

function TimeShow({ time }) {
  //   console.log(new Date(time).toLocaleTimeString());
  const localtime = new Date(time).toLocaleTimeString();
  const origintime = new Date(time).toLocaleDateString();
  //   console.log(origintime);
  const showtime = origintime.split("/").join("-") + localtime;

  return <Tag color="yellowgreen">{showtime}</Tag>;
}
 
export default TimeShow;
